package com.zpark.pojo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

//JavaBean 对象级联校验
@Data
public class UserDetail {
    @Length(min = 5,max = 17,message = "length长度在[5,17]之间")
    @NotNull(message = "额外的不能为空")
    private String extField;
    //省略get、set方法
}
